<template>
  <div>
        <van-field label="标题" v-model="form.title"/>
        <van-button @click="submit">发布</van-button>
  </div>
</template>

<script>
import maxios from "../http/axios";
export default {
  data() {
    return {
      form:{"usersid":localStorage.getItem('uid')}
    }
  },
  methods:{
    submit(){
      maxios('newsM','post',this.form).then(res=>{
          alert('发布成功')
          console.log(res)
      })
    }
  }
}
</script>

<style scoped>

</style>